import {
	createSSRApp
} from 'vue'

import {
	createPinia
} from "pinia"

// 持久化存储
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import "./utils/u-utils.js";
import App from './App.vue'
export function createApp() {
	const pinia = createPinia()
	pinia.use(piniaPluginPersistedstate)
	const app = createSSRApp(App)
	app.use(pinia)
	return {
		app
	}
}